<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:MonitorWindow="clr-namespace:ScrumSprintMonitor.UI.Wpf.Views.MonitorWindow;assembly=ScrumSprintMonitor.UI.Wpf"
                    xmlns:ViewModels="clr-namespace:ScrumSprintMonitor.Modules.WorkItemMonitor.ViewModels">

	<Style x:Key="SprintOverviewInfoLabel" TargetType="{x:Type Label}">
		<Setter Property="FontSize" Value="64" />
		<Setter Property="VerticalAlignment" Value="Bottom" />
		<Setter Property="HorizontalAlignment" Value="Stretch" />
		<Setter Property="Foreground" Value="LightGray" />
	</Style>

	<DataTemplate x:Key="SprintChartViewModelTemplate">
		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height="1*" />
				<RowDefinition Height="4*" />
			</Grid.RowDefinitions>

			<Viewbox Grid.Row="0" Margin="10,2">
				<Label Content="{Binding Caption}" Style="{StaticResource SprintOverviewInfoLabel}" />
			</Viewbox>

			<MonitorWindow:SprintOverviewChart Grid.Row="1" DataContext="{Binding PieChartData}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
		</Grid>
	</DataTemplate>

	<DataTemplate DataType="{x:Type ViewModels:UserStoryCountChartViewModel}">
		<ContentControl ContentTemplate="{StaticResource SprintChartViewModelTemplate}" Content="{Binding}" Focusable="False" />
	</DataTemplate>

	<DataTemplate DataType="{x:Type ViewModels:BacklogItemCountChartViewModel}">
		<ContentControl ContentTemplate="{StaticResource SprintChartViewModelTemplate}" Content="{Binding}" Focusable="False" />
	</DataTemplate>

	<DataTemplate DataType="{x:Type ViewModels:SprintHoursChartViewModel}">
		<ContentControl ContentTemplate="{StaticResource SprintChartViewModelTemplate}" Content="{Binding}" Focusable="False" />
	</DataTemplate>
</ResourceDictionary>